package yf.mall.service;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.PriceEntity;
import com.yf.service.BaseService;
import yf.mall.vo.PriceVo;

import java.util.List;

/**
 * 代理价格Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 29 17:42:37 CST 2019
 */
public interface PriceService extends BaseService<PriceEntity> {


    /**

     List<PriceVo> queryListVo(PriceVo priceVo);

     PriceVo getVo(Long id);
     **/

    /***********BACK***********/

    //找出某个产品的所有价格
//    List<PriceVo> findByGoodsId(Long goodsId);

    List<PriceVo> findByGoodsIdAndCode(Long goodsId,String code);

    PriceEntity findByLevelIdAndGoodsIdAndCode(Long levelId,Long goodsId,String code);


    /***********API***********/

//   PriceEntity  findByUserIdAndGoodsId(Long userId,Long goodsId);
   PriceEntity  findByUserIdAndGoodsIdAndCode(Long userId,Long goodsId,String code);

    void deleteNotIn(List<Long> ids, Long goodsId);

}
